﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using MdcService.Static;
using Newtonsoft.Json;

namespace MdcService.Structure
{
    [JsonObject(MemberSerialization.OptOut)]
    public class MachineValue
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Path { get; set; }
        public DateTime TimeStamp { get; set; }
        public DateTime LastConnect { get; set; }
        public DateTime LastRead { get; set; }
        public int Failures { get; set; }
        public IDictionary<string, ValueItem> ValueItems { get; set; }
            = new ConcurrentDictionary<string, ValueItem>();
    }
}
